package com.san.hkhospital.controller;
import com.san.hkhospital.service.SectionService;
import com.san.hkhospital.service.impl.SectionServiceImpl;
import com.san.hkhospital.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
* (section)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/section")
public class SectionController {
/**
* 服务对象
*/
@Resource
private SectionServiceImpl sectionServiceImpl;
@Autowired
    private SectionService sectionService;

@RequestMapping("sectionList")
    public ResultVO sectionList(){
    return ResultVO.success("科室查询成功",sectionService.sectionList());
}

    @RequestMapping("selectSection")
    public ResultVO selectSection(){
    return ResultVO.success("科室查询成功", sectionService.selectSection());
    }

}
